
package com.bei_en.teacher.admin.persistence.dao.order;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.bei_en.teacher.admin.model.order.bean.OrderBasic;
import com.bei_en.teacher.admin.model.order.condition.OrderBasicCondition;
import com.bei_en.teacher.admin.persistence.BaseDao;

/**
 * （订单）
 * @author Guocg
 * @date 2016-12-22 9:44:23
 */
@Repository
public interface OrderBasicDao extends BaseDao<OrderBasic, Integer> {

    Integer findNumberByCondition(OrderBasicCondition vo);

    List<OrderBasic> findPageBreakByCondition(OrderBasicCondition vo, RowBounds rb);

    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
